package cn.iocoder.yudao.module.erp.controller.admin.relationship.vo;

import cn.iocoder.yudao.module.erp.dal.dataobject.product.ErpProductDO;
import cn.iocoder.yudao.module.erp.dal.dataobject.purchase.ErpSupplierDO;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

import java.util.List;

@Schema(description = "管理后台 - 物料供应商关联新增/修改 Request VO")
@Data
public class RelationshipSaveReqVO {

    @Schema(description = "关联编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "20819")
    private Long id;

    @Schema(description = "产品集合", requiredMode = Schema.RequiredMode.REQUIRED, example = "7354")
    private List<ErpProductDO> productIds;

    @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30387")
    private List<ErpSupplierDO> supplierIds;

    @Schema(description = "供应商编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30387")
    private Long supplierId;

    @Schema(description = "物料字典")
    private ErpProductDO product;

    @Schema(description = "供应商管理")
    private ErpSupplierDO supplier;

    @Schema(description = "产品编号")
    private Long productId;
    @Schema(description = "排序")
    private Integer sort;
    @Schema(description = "最小起订量")
    private Integer minOrderQuantity;

}